package com.hehui.module.customer.service;

import com.hehui.module.customer.entity.BaseCustomer;

import java.util.List;

public interface ICustomerService {

    /*根据条件分页查询客户信息列表*/
    public List<BaseCustomer> selectCustomerList(BaseCustomer baseCustomer);

    /*** 根据ID查询客户信息*/
    public BaseCustomer selectByPrimaryKey(Long customerId);

    /*** 新增客户*/
    public int insertCustomer(BaseCustomer baseCustomer);

    /**修改客户信息*/
    public int updateCustomer(BaseCustomer baseCustomer);

    /**批量启用或停用用户*/
    public int updateCustomerStateByIds(Long[] customerIds, String state);

    /*检查用户名唯一性*/
    public boolean checkUserNameUnique(String username,Long merchantId);

    /*检查手机号唯一性*/
    public boolean checkMobileUnique(String mobile,Long merchantId);

    /*检查邮箱唯一性*/
    public boolean checkMailUnique(String mail,Long merchantId);

    /* 删除客户*/
    public int deleteCustomerByIds(Long[] customerIds);

    /*生成编号*/
    public String createNewNum(Long merchantId);

    /*检查编号唯一性*/
    public boolean checkNumUnique(String num,Long merchantId);

}
